import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './registerServiceWorker'

import ElementUI from 'element-ui';
import './plugins/element.js'
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
axios.defaults.baseURI='http://39.105.175.112:8080/api/v1'
Vue.prototype.$http =axios
Vue.use(ElementUI);

Vue.config.productionTip = false
Vue.directive('title', {
  // eslint-disable-next-line no-unused-vars
  inserted: function (el, binding) {
    document.title = el.dataset.title
  }
})
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
